package com.um.jdy.common.device.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 甘天伟
 * @since 2022/4/24
 * 版权所有 广州优匠科技有限公司
 */
public class DeviceEnum {

    /**
     * 物联网状态
     */
    @Getter
    @AllArgsConstructor
    public enum DeviceStatus {
        NotActivated("未激活"),
        Offline("离线"),
        Online("在线"),
        Disable("已禁用");

        private String value;
    }


    /**
     * 充电口状态：0:空闲  1:充电中  2:故障
     */
    @Getter
    @AllArgsConstructor
    public enum PortStatus {
        Available("可用"),
        Preparing("启动中"),
        Charging("充电中"),
        Faulted("故障"),
        Locked("锁定"),
        Offline("离线");//汽车桩专用

        private String value;
    }

    /**
     * 开放状态 0-启用 1-未启用 2-停用
     */
    @Getter
    @AllArgsConstructor
    public enum OpenStatus {
        Enable("启用"),
        NotEnabled("未启用"),
        Disable("停用");

        private String value;
    }

    @Getter
    @AllArgsConstructor
    public enum AcAndDc {
        AC("直流"),
        DC("交流");

        private String value;

    }

    @Getter
    @AllArgsConstructor
    public enum Type {
        EB("EB","两轮充电桩"),
        EV("EV","汽车充电桩"),
        EBox("EBox","充电柜"),
        BSB("BSB","换电柜"),
        PB("PB","充电宝");

        private String key;
        private String value;
    }
}
